<?php
namespace x\my;
use x\my\Curl;
class BankValidate
{

    public static $appkey = "24965090";
    public static $appsecret = "5fc851bb451c3ef32abb293484cf81b1";

    public static $appcode = "5954aff09b7c4c20a8f44912b51de4b9";

    /**
     * Json方式 查询订单物流轨迹
     */
    public static function getBankBindUserByJson($BankNumber,$UserName){
        $host = "https://api11.aliyun.venuscn.com";
        $path = "/cert/bank-card/2";
        $headers = array();
        array_push($headers, "Authorization:APPCODE " . self::$appcode);
        $querys = "bank={$BankNumber}&name={$UserName}";
        $url = $host . $path . "?" . $querys;
        return Curl::get($url,'',$headers);
    }

}
